package cn.itcast.gate.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {

    @RequestMapping("/fallbackTest")
    public Map<String,String> fallbackController(){

        Map<String, String> map = new HashMap<>();

        map.put("code","502");

        map.put("msg","服务超时");

        return map;

    }

}
